import request from '@/utils/request'

import Cookies from 'js-cookie'

// 查询借款签章列表
export function listSignature(query) {
  return request({
    url: '/loan/signature/list',
    method: 'get',
    params: query
  })
}

// 查询借款签章详细
export function getSignature(loanSignatureId) {
  return request({
    url: '/loan/signature/' + loanSignatureId,
    method: 'get'
  })
}

// 新增借款签章
export function addSignature(data) {
  return request({
    url: '/loan/signature',
    method: 'post',
    data: data
  })
}

// 修改借款签章
export function updateSignature(data) {
  return request({
    url: '/loan/signature',
    method: 'put',
    data: data
  })
}

// 删除借款签章
export function delSignature(loanSignatureId) {
  return request({
    url: '/loan/signature/' + loanSignatureId,
    method: 'delete'
  })
}
